﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;
namespace HNQXYJ.BLL
{
    /// <summary>
    /// Login 的摘要说明
    /// </summary>
    public class Login : IHttpHandler, IRequiresSessionState 
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            //context.Response.Write("Hello World");
            string name = context.Request["name"];
            if (name == "exit")
            {
                context.Session["username"] = "";
                context.Response.Redirect("../Login.aspx",true );
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}